<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>main</title>
<link rel="stylesheet" href="css/bootstrap.css" />
<script src="js/jquery-3.1.0.min.js"></script>
<script src="js/bootstrap.js"></script>
<style>
#brand:before {
	content: url("img/mashen_logo1.png");
}
</style>
</head>
<body style="border: 0px;padding: 0px">
<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
        <a class="navbar-brand" href="#" id = "brand"><span style="font-size:28px">首页</span></a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav navbar-right">
            <li>
                <a href="../login.jsp">登陆</a>
            </li>
            <li class="dropdown">
                <a href="../register.jsp">注册</a>
            </li>
            <li class="dropdown">
                <a href="../login.jsp">退出</a>
            </li>
        </ul>
    </div>
</nav>
<div class="glyphicon-fullscreen" style="margin: 0px" >
    <div class="col-md-2 column">
        <ul class="nav nav-pills nav-stacked">
            <li class="active">
                <a href="#">投票管理</a>
            </li>
            <li>
                <a href="join_vote.jsp" target="contentiframe" id="joinvote">参与投票</a>
            </li>
            <li>
                <a href="initiate_vote.jsp" target="contentiframe" id="newvote">发起投票</a>
            </li>
            <li>
                <a href="my_initiate_vote.jsp" target="contentiframe" id="myvotelist">我发起的投票</a>
            </li>
            <li>
                <a href="my_join_vote.jsp" target="contentiframe" id="myjoinlist">我参与的投票</a>
            </li>
        </ul>
    </div>
    <div class="col-md-10 column">
        <iframe
                width="100%"
                frameborder="0"
                id = "contentiframe"
                name = "contentiframe"
                onload="ifmresize()"
                src = "join_vote.jsp">
        </iframe>
    </div>
</div>
</body>
<script>
    <!-- 编写脚本 -->
    function ifmresize(){
        var ifm= document.getElementById("contentiframe");
        ifm.height=document.documentElement.clientHeight;
    }
</script>

</html>